<template>
  <div>
    点击 {{ count }}, 当前次数为: {{ evenOrOdd }}
  </div>
</template>

<script>
import {mapState, mapGetters} from 'vuex'
export default {
  name: 'CountShow',

  computed: {
    // count () {
    //   return this.$store.state.counter.count
    // },
    ...mapState('counter', ['count']),
    ...mapGetters('counter', ['evenOrOdd'])
  }
}
</script>

<style scoped>

</style>
